<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>获取 XML 解析器的当前行号</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.xml-get-current-line-number" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">xml_get_current_line_number</h1>
    <p class="verinfo">(PHP 4, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">xml_get_current_line_number</span> &mdash; <span class="dc-title">获取 XML 解析器的当前行号</span></p>

   </div>
   <div class="refsect1 description" id="refsect1-function.xml-get-current-line-number-description">
    <h3 class="title">说明</h3>
    <div class="methodsynopsis dc-description">
     <span class="methodname"><strong>xml_get_current_line_number</strong></span>
      ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$parser</code></span>
     ) : <span class="type">int</span></div>

    <p class="para rdfs-comment">
     获取指定 XML 解析器当前的行号。
    </p>
   </div>

   <div class="refsect1 parameters" id="refsect1-function.xml-get-current-line-number-parameters">
    <h3 class="title">参数</h3>
    <p class="para">
     <dl>

      
       <dt>
<code class="parameter">parser</code></dt>

       <dd>

        <p class="para">
         一个指向要获取当前行号的 XML 解析器的指针。
        </p>
       </dd>

      
     </dl>

    </p>
   </div>

   <div class="refsect1 returnvalues" id="refsect1-function.xml-get-current-line-number-returnvalues">
    <h3 class="title">返回值</h3>
    <p class="para">
     如果 <code class="parameter">parser</code> 参数没有指向一个合法的解析器，该函数将返回 <strong><code>FALSE</code></strong>，否则将返回指定解析器在其缓存中的当前行号。
    </p>
   </div>

   <div class="refsect1 seealso" id="refsect1-function.xml-get-current-line-number-seealso">
    <h3 class="title">参见</h3>
    <p class="para">
     <ul class="simplelist">
      <li class="member"><span class="function"><strong>xml_get_current_column_index()</strong></span></li>
      <li class="member"><span class="function"><a href="xml_get_current_byte_index.html" class="function" rel="rdfs-seeAlso">xml_get_current_byte_index()</a> - 获取 XML 解析器的当前字节索引</span></li>
     </ul>
    </p>
   </div>

  </div></div></div></body></html>